package com.github.llyb120.config;

import javassist.ClassPool;
import javassist.LoaderClassPath;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: Administrator
 * @Date: 7/27/2021 5:43 PM
 */
@Configuration
public class JavassistConfig {

    @Autowired
    public void init(){
        ClassPool classPool = ClassPool.getDefault();
        classPool.appendClassPath(new LoaderClassPath(Thread.currentThread().getContextClassLoader()));
    }
}
